﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAO;
using DTO;

namespace BUSSINESS
{
    public class BUS_NgyenNhanMat
    {
        DAO_NguyenNhanMat dao = new DAO_NguyenNhanMat();
        public DataTable GetNguyenNhanMat()
        {
            return dao.GetNguyenNhanMat();
        }
        public bool InsertNguyenNhanMat(DTO_NguyenNhanMat dto)
        {
            return dao.InsertNguyenNhanMat(dto);
        }
        public bool UpdateNguyenNhanMat(DTO_NguyenNhanMat dto)
        {
            return dao.UpdateNguyenNhanMat(dto);
        }
        public bool DeleteNguyenNhanMat(DTO_NguyenNhanMat dto)
        {
            return dao.DeleteNguyenNhanMat(dto);
        }
        public DataTable GetNguyenNhanNhatByName(string name)
        {
            return dao.GetNguyenNhanMatByName(name);
        }
    }
}
